package bd.proiect;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainMenu extends Activity{
	
	@Override
	  public void onCreate(Bundle savedInstanceState) {
		
	     super.onCreate(savedInstanceState);
	     setContentView(R.layout.menu);  
		
	     Button AddGeneralButton = (Button) findViewById(R.id.add_general);
	     AddGeneralButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(MainMenu.this, AddGeneral.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button ViewGeneralButton = (Button) findViewById(R.id.view_general);
	     ViewGeneralButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(MainMenu.this, ViewGeneral.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
		
	 }

}
